/**
 * 
 */
package org.paybiz.core.payplatform.bill99.entity;

import java.io.Serializable;

/**
 * @author nassir wen
 * @date 2011-12-12
 * @version V2.5
 * @Company: MSD.
 * @Copyright Copyright (c) 2011
 */
public class ResultVO implements Serializable{

    private static final long serialVersionUID = 5923064704115364269L;
    
    private String resultCode = ""; //返回代码 0 为成功 其它代码请参见编码表
    
    private String errMsg = ""; //错误消息
    
    private String sucMsg = "";//成功消息,成功后可能返回信息
    
    private String sign = "";//签名

    public ResultVO() {
        
    }
    
    public ResultVO(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getSucMsg() {
        return sucMsg;
    }

    public void setSucMsg(String sucMsg) {
        this.sucMsg = sucMsg;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @Override
    public String toString() {
        return "ResultVO [resultCode=" + resultCode + ", errMsg=" + errMsg
                + ", sucMsg=" + sucMsg + ", sign=" + sign + "]";
    }
    
    public static ResultVO newSuccessResult() {
        return new ResultVO("0"); 
    }
}
